package com.ct.bigscreen.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.Objects;


@Mapper
@Component  // idea高版本不会警告错误，可省略
public interface ViewMapper {
    @Select("select * from regional_sales")
    List<Map<String, Objects>> getRegionalData();

    @Select("select * from trend_analysis")
    List<Map<String, Objects>> getTrendData();

    @Select("select * from popular_cuisine")
    List<Map<String, Objects>> getPopularData();

}


